import Vue from 'vue'
import Router from 'vue-router'
import Login from '../view/login'
import Layout from '../view/layout'
import Dsah from '../view/dsah'
import Echarts from '../view/echarts'
Vue.use(Router)

const router = new Router({
    routes:[
        {
            path:'/login',
            component:Login,
        },
        {
            path:'/layout',
            component:Layout,
            children:[
                {
                    path:'/dsah',
                    name:'dsah',
                    component:Dsah
                },
                {
                    path:'/echarts',
                    name:'echarts',
                    component:Echarts
                }
            ]
        }
    ]
})

export default router
